<template>
  <van-tabbar route>
    <van-tabbar-item to="/home" icon="home-o">首页</van-tabbar-item>
    <van-tabbar-item to='/category' icon="search">分类</van-tabbar-item>
    <van-tabbar-item to="/cart" icon="friends-o" :badge="count">购物车</van-tabbar-item>
    <van-tabbar-item to="/user" icon="setting-o">我的</van-tabbar-item>
  </van-tabbar>
</template>

<script>

export default {
}
</script>
<script setup>
import store from '../store'
const count = store.state.cartCount;
</script>

<style lang="less" scoped>
</style>